package com.battery.service;
import com.battery.pojo.Order;
import com.battery.util.result.Result;

import java.sql.Timestamp;

public interface OrderService {
    Result addOrder(Order order); //新增订单
    Result dropOrder(int order_id); //删除订单
    Result queryOrder(int order_id); //查找订单
    Result modifyOrder(Order order); //修改订单
    Result queryAllOrder(); //查找所有订单
    Result queryAllMerOrder(int mer_id);
    Result queryAllUserOrder(int user_id);
    Order calculatedOrder(int id, Timestamp endTime);

}
